/*
 * $Id: SiteModelType.java 92 2009-06-22 15:43:23Z donbeave $
 */

package labour.concept.engine.client.data;

import com.extjs.gxt.ui.client.data.DataField;
import com.extjs.gxt.ui.client.data.ModelType;

public class SiteModelType extends ModelType {

  public SiteModelType() {
    setRoot("data");
    setTotalName("totalCount");

    addFields();
  }

  protected void addFields() {
    addField(SiteModel.ID);

    DataField field = new DataField(SiteModel.SORT_ORDER);
    field.setType(Integer.class);
    addField(field);

    addField(SiteModel.LOCALE_ID);

    field = new DataField(SiteModel.IS_PUBLISHED);
    field.setType(Boolean.class);
    addField(field);

    addField(SiteModel.NAME);
  }

}
